package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 交易流水实体对象
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_trade_log")
@Table(appliesTo = "mb_trade_log", comment = "交易流水表")
public class TradeLog extends BaseMiniModel implements Serializable {

	private static final long serialVersionUID = 1838073686760891723L;

	@ApiModelProperty(value = "操作用户")
	@Column(name = "operate_user", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '操作用户'")
	private String operateUser;
	
	@ApiModelProperty(value = "交易列号")
	@Column(name = "consumer_seq_no", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '交易列号'")
	private String consumerSeqNo;
	
	@ApiModelProperty(value = "接口场景")
	@Column(name = "interface_scenes", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '接口场景'")
	private String interfaceScenes;
	
	@ApiModelProperty(value = "接口信息")
	@Column(name = "interface_info", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '接口信息'")
	private String interfaceInfo;

	@ApiModelProperty(value = "请求来源")
	@Column(name = "request_source", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '请求来源'")
	private String requestSource;

	@ApiModelProperty(value = "请求数据")
	@Column(name = "request_parameters", columnDefinition = "longtext  DEFAULT NULL COMMENT '请求数据'")
	private String requestParameters;

	@ApiModelProperty(value = "返回结果")
	@Column(name = "response_result", columnDefinition = "longtext  DEFAULT NULL COMMENT '返回结果'")
	private String responseResult;

}
